﻿using System;

namespace Sidvall.Net
{
    public class Proxy : System.Net.IWebProxy
    {
        #region Public Members

        #region Credentials

        private System.Net.ICredentials _Credentials;
        public System.Net.ICredentials Credentials
        {
            get
            {
                return _Credentials;
            }
            set
            {
                _Credentials = value;
            }
        }

        #endregion

        #region GetProxy

        public Uri GetProxy(Uri destination)
        {
            return _ProxyUri;
        }

        #endregion
        #region IsBypassed

        public bool IsBypassed(Uri host)
        {
            return false;
        }

        #endregion

        #endregion
        #region Private Members

        private readonly Uri _ProxyUri;

        #endregion
        #region Constructors

        public Proxy(Uri proxyUri)
        {
            _ProxyUri = proxyUri;
        }

        #endregion
    }
}
